package cn.pop.hsp_system_v2.Service.impl;

import cn.pop.hsp_system_v2.Service.TbUseService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.pop.hsp_system_v2.Pojo.TbUse;

import cn.pop.hsp_system_v2.Mapper.TbUseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
*
*/
@Service
public class TbUseServiceImpl extends ServiceImpl<TbUseMapper, TbUse>
implements TbUseService {
    @Autowired
    private TbUseMapper tbUseMapper;


    //分页查询
    @Override
    public IPage<TbUse> selectPage(Page<TbUse> page){
        return tbUseMapper.selectPage(page, null);
    }

    //模糊分页查询
    @Override
    public IPage<TbUse> selectPageLike(Page<TbUse> page, QueryWrapper<TbUse> qw){
        return tbUseMapper.selectPage(page, qw);
    }

}

